<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String appPath = request.getContextPath();
%>
	<c:forEach items="${vouchers}" var="voucher">
	
	<div class="weui_panel_bd" style="margin-left:20px;">
			
				<a href="javascript:;"
					class="weui_media_box weui_media_appmsg">
					<div class="weui_media_hd">
					<c:if test="${now>voucher.endDate}">
						<img style="height:60px;"
							class="weui_media_appmsg_thumb"
							src="${staticPath}/images/voucher2.png" alt="">
							</c:if>
								<c:if test="${now<=voucher.endDate}">
						<img style="height:60px;"
							class="weui_media_appmsg_thumb"
							src="${staticPath}/images/voucher${voucher.state}.png" alt="">
							</c:if>
					</div>
				
					<div class="weui_media_bd">
						<h4 class="weui_media_title2">${voucher.name }</h4>
						<h3 class="weui_media_title">满<fmt:formatNumber value="${voucher.limitMoney/100}" pattern="#,###.##" />减<fmt:formatNumber value="${voucher.price/100}" pattern="#,###.##" /></h3>
						<p class="weui_media_desc">
							过期时间：<fmt:formatDate value="${voucher.endDate }" type="both" />
						</p>
					</div>
				</a>
			</div>
		</c:forEach>
		<c:if test="${over==true}">
			<input id="over" value="true" type="hidden"/>
		</c:if>
